package Class.obj.field.exer2;

public class EmployeeTest {
    public static void main(String[] args) {
        Employee employee = new Employee();
        employee.id = 123;
        employee.name = "倪永康";
        employee.age = 12;
        // 如果属性的类型(除了String)是类类型，那么一般用new来进行赋值
        employee.birthday = new MyDate();
        employee.birthday.year = 2023;
        employee.birthday.month = 12;
        employee.birthday.day = 30;
    }
}
